[Clang] Fix build with GCC 14 on ARM
authorEmanuele Rocca <emanuele.rocca@arm.com>
Mon, 9 Sep 2024 12:56:19 +0000 (14:56 +0200)
committerGianfranco Costamagna <locutusofborg@debian.org>
Mon, 9 Sep 2024 12:56:19 +0000 (14:56 +0200)
commit781bc95580c029ed4597dcef8068ed0082b48317
treef87365cffe5ff006a3102b440ba1c82648225c0e
parent435bf19445db46188333bc76e5688348d5875d5d
[Clang] Fix build with GCC 14 on ARM

Origin: backport, https://github.com/llvm/llvm-project/pull/78704/commits/078c18de832328f743fb6e
Bug-Debian: https://bugs.debian.org/1077068
Forwarded: not-needed
Last-Update: 2024-08-29

Backport to LLVM 17 of a patch by Nikita Popov <npopov@redhat.com> merged in
the upstream main branch. The patch fixes a build issue on arm64 with GCC 14.
The additional changes to the for loop in ClangAttrEmitter.cpp have been taken
from the main branch and are needed for the HasArgs boolean.

Gbp-Pq: Name arm64-clang-gcc-14.patch
clang/include/clang/Basic/TokenKinds.def
clang/include/clang/Basic/TokenKinds.h
clang/utils/TableGen/ClangAttrEmitter.cpp